﻿using System;
using System.Configuration;
using System.Reflection;
using WindowLinuxUNIX;

namespace WindowLinuxUNIX
{
    class Program
    {
        static void Main(string[] args)
        {
            string path = ConfigurationManager.AppSettings["factory"];
            Console.WriteLine(path);
            //Factory factory = Assembly.Load("WindowLinuxUNIX").CreateInstance("WindowLinuxUNIX.Window") as Factory;
            Factory factory = (Factory)Assembly.Load("WindowLinuxUNIX").CreateInstance(path);
            Button button = factory.BuildButton();
            Text text = factory.BuildText();
            //Factory window = new Window();
            //Button button = window.BuildButton();
            button.Display();
            text.Display();
        }
    }
}
